package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * @author hyy
 * @version 1.0
 * @description: 退货表模型
 * @date 2024/10/22 17:15
 */
@TableName("return_to_vendor")
@lombok.Data
public class ReturnToVendor {
    //退货主键
    @TableId(type = IdType.AUTO)
    private Integer rtvId;
    //链接销售订单
    private Integer orderId;
    //退货原因
    private String rtvBecause;
    //退货时间
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")   //json格式数据里面日期类型的转换
    @DateTimeFormat(pattern = "yyyy-MM-dd")  //提交请求日期格式的转换
    private Date rtvTime;
    //退货状态
    private Integer rtvStatus;
    //链接的订单信息
    @TableField(exist = false)
    private Order order;
}
